package com.stronger.pettern.factory;

public class test {
    public static void main(String[] args) {
        MesssageFactory factory=new MesssageFactory();
        Sender sms = factory.produce("sms");
        System.out.println("sms = " + sms.send());

        String send = factory.mailSend().send();
        System.out.println("send = " + send);
    }
}
